Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default CPUs for x86/x86_64 targets #21646

Merged
merged 2 commits into from
Jan 27, 2015

Conversation

dotdash
Copy link
Contributor

@dotdash dotdash commented Jan 26, 2015

Using generic as the target cpu limits the generated code to the bare basics for the arch, while we can probably assume that we'll actually be running on somewhat modern hardware. This updates the default target CPUs for the x86 and x86_64 archs to match clang's behaviour.

Refs #20777

Macs don't come with anything older than a Yonah (32bit) or Core2 (64bit),
so we can default to those targets. Clang does the same.
Limiting ourselves to a generic x86 instruction set doesn't seem useful.
Both users running those systems on original i386 hardware might as well
manually specify a target cpu ;-)

Clang uses the same default.
@dotdash dotdash changed the title Update default CPUs for some targets Update default CPUs for x86/x86_64 targets Jan 26, 2015
@rust-highfive
Copy link
Collaborator

r? @nick29581

(rust_highfive has picked a reviewer for you, use r? to override)

@Aatch
Copy link
Contributor

Aatch commented Jan 26, 2015

@bors r+ 296c74d

bors added a commit that referenced this pull request Jan 27, 2015
Using `generic` as the target cpu limits the generated code to the bare basics for the arch, while we can probably assume that we'll actually be running on somewhat modern hardware. This updates the default target CPUs for the x86 and x86_64 archs to match clang's behaviour.

Refs #20777
@bors
Copy link
Contributor

bors commented Jan 27, 2015

⌛ Testing commit 296c74d with merge 1c87af2...

@bors bors merged commit 296c74d into rust-lang:master Jan 27, 2015
@dotdash dotdash deleted the default_target_cpu branch February 4, 2015 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants